﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PM.Common;
//using PM.Services;
using PM.Entity;

namespace PM.Site
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserName"] == null || Session["UserTypeId"] == null)
            {
                Response.Redirect("Login.aspx?RequestUrl=" + Request.Url.OriginalString);
            }
            else if (Session["UserTypeId"] != null && (int.Parse(Session["UserTypeId"].ToString()) == 0))
            {
                lnkAddClient.Visible = false;
                lnkAddUser.Visible = false;
            }
            else if (Session["UserTypeId"] != null && (int.Parse(Session["UserTypeId"].ToString()) == 1))
            {
                lnkMyDetails.Visible = false;
                
            }
            
           
        }
    }
}
